<?php 

namespace admin;

/**
* 
*/
class Controller_Swipe extends Controller_BaseController
{
    
    public $template = 'game/template';

    public function action_index(){
        $params = array(
            'title' => '幻灯片管理',
            'menu' => ''
        );

        $params['items'] = \Model_Swipe::query()->get();

        \View::set_global($params);
        $this->template->content = \View::forge("game/swipe");
    }

    /**
    * 更新幻灯片
    *
    */
    public function action_edit(){
        $this->template->content = \View::forge("game/update");
    }

    /**
    * 创建幻灯片
    *
    */
    public function action_create(){
        $this->template->content = "管理首页及网游页幻灯片";
    }

}
?>